#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include"MyTcpServer.h"
#include"QLabel"
#include"ThreadPool.h"
#include<QTextBrowser>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QObject*instance;
    MyTcpServer *tcpServer;
    QLabel *onlineCount;
    QLabel *serverStatus;
    QLabel*onlineLbl;
    QTextBrowser* rcvText;


    ThreadPool *pool;
    void print_test(std::string message);
private slots:

    void on_startBtn_clicked();

    void on_stopButton_clicked();

    void on_pushButton_clicked();


    void on_startClientBtn_clicked();

    void on_btnStart3D_clicked();

    void on_btnStartCharts_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
